/* Login.module.css */
.container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 20px;
}

.box {
  background: white;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 400px;
}

.title {
  text-align: center;
  margin-bottom: 30px;
  color: #333;
  font-size: 24px;
}

.subtitle {
  text-align: center;
  margin-bottom: 20px;
  color: #333;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

/* 登录方式切换标签 */
.tabs {
  display: flex;
  margin-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.tabButton {
  flex: 1;
  padding: 12px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s;
  color: #666;
}

.tabButtonActive {
  border-bottom-color: #1890ff;
  color: #1890ff;
  font-weight: bold;
}

.tabButton:hover {
  color: #1890ff;
}

.formGroup {
  margin-bottom: 20px;
}

.label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
}

.input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.3s;
  box-sizing: border-box;
}

.input:focus {
  outline: none;
  border-color: #1890ff;
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

/* 验证码输入组 */
.codeInputGroup {
  display: flex;
  gap: 10px;
}

.codeInputGroup .input {
  flex: 1;
}

.sendCodeButton {
  padding: 0 15px;
  background: #1890ff;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  min-width: 100px;
  transition: background 0.3s;
  font-size: 14px;
  white-space: nowrap;
}

.sendCodeButton:hover:not(:disabled) {
  background: #40a9ff;
}

.sendCodeButton:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* 手机号提示 */
.phoneHint {
  font-size: 12px;
  color: #666;
  margin-top: 5px;
}

.submitButton {
  width: 100%;
  padding: 12px;
  background: #1890ff;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s;
  margin-bottom: 15px;
}

.submitButton:hover:not(:disabled) {
  background: #40a9ff;
}

.submitButton:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.links {
  text-align: center;
  margin-top: 15px;
}

.linkButton {
  background: none;
  border: none;
  color: #1890ff;
  cursor: pointer;
  font-size: 14px;
  text-decoration: underline;
}

.linkButton:hover {
  color: #40a9ff;
}

.formActions {
  display: flex;
  gap: 10px;
}

.secondaryButton {
  flex: 1;
  padding: 12px;
  background: #f5f5f5;
  color: #666;
  border: 1px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
}

.secondaryButton:hover {
  background: #e6f7ff;
  border-color: #1890ff;
  color: #1890ff;
}

.testAccounts {
  margin-top: 25px;
  padding: 15px;
  background: #f9f9f9;
  border-radius: 6px;
  border-left: 4px solid #1890ff;
}

.testAccounts p {
  margin: 5px 0;
  font-size: 13px;
  color: #666;
}

.testAccounts p:first-child {
  color: #333;
  font-weight: 500;
}